package cn.itxf.pethome.mapper;

import cn.itxf.pethome.domain.Department;
import cn.itxf.pethome.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {

     //查询全部
    List<Department> findAll(DepartmentQuery query);

    //查询一个
    Department finByid(Long id);

    //添加
    void insert(Department department);

    //修改
    void update(Department department);

    //删除
    void detele(Long id);

    //查询总条数
    Long findCounAll(DepartmentQuery departmentQuery);

}
